package com.example.demo;

import java.util.ArrayList;
import java.util.List;

public class Dept {

    public  static  final List<Dept> DEPT_LIST = new ArrayList<>();
    static {
        DEPT_LIST.add(new Dept(10,"研发部","软件学院"));
        DEPT_LIST.add(new Dept(20,"销售部","东软集团"));
        DEPT_LIST.add(new Dept(30,"财务部","软件学院"));
        DEPT_LIST.add(new Dept(40,"人事部","东软集团"));
        DEPT_LIST.add(new Dept(50,"行政部","东北大学"));
        DEPT_LIST.add(new Dept(60,"测试部","东北大学"));
    }


    private  int deptno = 10;
    private  String dname ="研发部";
    private  String loc ="东软集团";

    public Dept(int deptno, String dname, String loc) {
        this.deptno = deptno;
        this.dname = dname;
        this.loc = loc;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptno=" + deptno +
                ", danme='" + dname + '\'' +
                ", loc='" + loc + '\'' +
                '}';
    }

    public Dept(){}

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }
}
